from flask import Blueprint, request

from service.email_service import EmailService

email_api = Blueprint('email_api', __name__)


@email_api.route('/register', methods=["POST"])
def register():
    return EmailService.register(request.get_json())


@email_api.route('/findPsd', methods=["POST"])
def findPsd():
    return EmailService.findPsd(request.get_json())


# @email_api.route('/check/<code>', methods=["GET"])
# def check(code):
#     return EmailService.check(code)
